/*
 * @Author: 陈国庆 2306727047@qq.com
 * @Date: 2023-12-09 10:51:18
 * @LastEditors: 陈国庆 2306727047@qq.com
 * @LastEditTime: 2023-12-11 13:43:27
 * @FilePath: \boke7.0\boke-server\src\dataBase\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from './Entities/user.entity';
import {Role} from './Entities/role.entity';
/**
 * 数据库模块
 */
export const dataModule = TypeOrmModule.forRoot({
  type: 'mysql',
  host: '107.175.72.204',
  port: 3306,
  username: 'network',
  password: 'eMAW6HhkRwSccTtB',
  database: 'network',
  entities: [User,Role],
  synchronize: true,
});
